package chapter2_nio.obj;

import java.io.Serializable;

public class Student implements Serializable {
    Integer id;
    String name;
    char gender;
    double gpa;
    public Student(){}
    public Student(Integer id, String name, char gender, double gpa) {
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.gpa = gpa;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public double getGpa() {
        return gpa;
    }

    public void setGpa(double gpa) {
        this.gpa = gpa;
    }

    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", gender=" + gender +
                ", gpa=" + gpa +
                '}';
    }
}
